home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hobby PC 13
/
Hobby PC 13.iso
/
assets
/
Asset Library
/
Images
/
Mouseover Buttons
/
For White Backgrounds
/
purplebomb
/
fxitems.xml
< prev
next >
Wrap
Extensible Markup Language
|
2001-04-09
|
6KB
|
80 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
<Icon SRC="%Filename%"/>
<Icon2 SRC="%Filename%"/>
<Description>%ASK:Description:%{Button ALT Text}</Description>
<Filename SRC="%Filename%"/>
<Filename2 SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, src2, dest, attr, attr2, dst2, dst;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
}
else
{
dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = "images/buttons/default/%Filename%";
attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.CopyFile(src2, dst2);
Application.FX.SelectDropPoint();
AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
Application.FX.ShowDialog('ANCHOR');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpattn"><Icon SRC="sp_wpattn.gif"/><Icon2 SRC="(sp)wpattn.gif"/><Description>Attention</Description><Filename SRC="sp_wpattn.gif"/><Filename2 SRC="(sp)wpattn.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpdown"><Icon SRC="sp_wpdown.gif"/><Icon2 SRC="(sp)wpdown.gif"/><Description>Down</Description><Filename SRC="sp_wpdown.gif"/><Filename2 SRC="(sp)wpdown.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpemail"><Icon SRC="sp_wpemail.gif"/><Icon2 SRC="(sp)wpemail.gif"/><Description>Email</Description><Filename SRC="sp_wpemail.gif"/><Filename2 SRC="(sp)wpemail.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpfaq"><Icon SRC="sp_wpfaq.gif"/><Icon2 SRC="(sp)wpfaq.gif"/><Description>FAQ</Description><Filename SRC="sp_wpfaq.gif"/><Filename2 SRC="(sp)wpfaq.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpgoback"><Icon SRC="sp_wpgoback.gif"/><Icon2 SRC="(sp)wpgoback.gif"/><Description>Go Back</Description><Filename SRC="sp_wpgoback.gif"/><Filename2 SRC="(sp)wpgoback.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wphelp"><Icon SRC="sp_wphelp.gif"/><Icon2 SRC="(sp)wphelp.gif"/><Description>Help</Description><Filename SRC="sp_wphelp.gif"/><Filename2 SRC="(sp)wphelp.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wphome"><Icon SRC="sp_wphome.gif"/><Icon2 SRC="(sp)wphome.gif"/><Description>Home</Description><Filename SRC="sp_wphome.gif"/><Filename2 SRC="(sp)wphome.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpnext"><Icon SRC="sp_wpnext.gif"/><Icon2 SRC="(sp)wpnext.gif"/><Description>Next</Description><Filename SRC="sp_wpnext.gif"/><Filename2 SRC="(sp)wpnext.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpprev"><Icon SRC="sp_wpprev.gif"/><Icon2 SRC="(sp)wpprev.gif"/><Description>Previous</Description><Filename SRC="sp_wpprev.gif"/><Filename2 SRC="(sp)wpprev.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="sp_wpup"><Icon SRC="sp_wpup.gif"/><Icon2 SRC="(sp)wpup.gif"/><Description>Up</Description><Filename SRC="sp_wpup.gif"/><Filename2 SRC="(sp)wpup.gif"/></Item>
</Items>